<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>


  <script>
   const myScript = document.createElement('script')
   myScript.src = 'http://localhost:3000?callback=cb' // test({ok:1})
   document.body.appendChild(myScript)

   function cb (val) {
    console.log(val,'我收到了')
   }
  </script>


  
</body>
</html>